import { request } from "../../utils/request.js";
import regeneratorRuntime from "../../utils/runtime.js";
Page({
  data: {
    playList:[],

  },
  async getdailySonge(){
    const result=await request({url: 'http://47.106.223.193:3000/v1/recommend/songs'}); 
    let playList=result.recommend.map(v=>{
      return {
        id:v.id,
        name:v.name,
        author:v.artists[0].name,
        album:v.album.name,
      }
    })
    this.setData({
      playList
    })

  },
  onLoad: function (options) {
    this.getdailySonge()
  },

})